﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExportUClaimDemageList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.UserModel.ExportExecl.ExportUClaimDemageList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
     <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>       
        <table class="table" width="1500" layouth="96" border=1 style=" border:1px solid #000;"  >                                                                                                                <thead>           
        <tr  >        
            <th width="80px">SAP发货单号</th>  
            <th width="60px">&nbsp;</th> 
            <th align="left" width="100px">
                代理商
            </th>   
            <th width="100px" orderField="ClaimsNumber" class="asc">
                品情单号
            </th>        
            <th  orderField="SerialNumber" class="asc" width="100px">
                机号
            </th>            
            <th width="100px">
                物料号
            </th>         
            <th width="130px">
                物料名称
            </th>     
            <th width="60px" orderField="Quantity" class="asc">
                数量
            </th>  
            <th width="80px">小计(金额)</th>  
            <th width="90px">发货类型</th>  
            <th width="80px">
                发货单号
            </th> 
            <th width="80px">发货方式</th>
            <th width="80px" orderField="TaxDate" class="asc">
                发货日期
            </th>        
            <th width="80px" align="center">
                欠品数量
            </th>      
            <th width="80px">
                旧件入库
            </th> 
            <th width="80px">
                数量
            </th>
            <th>误判数量</th>
        </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
        <tr target="sid_user" rel="<%# Eval("ID") %>"> 
             <td><%# Eval("DocEntry")%></td>
            <td><%# Eval("U_OutTypeText")%></td>
            <td><%# Eval("AgentName")%></td>
            <td title="  <%# Eval("DocEntry")%>">
                <%# Eval("ClaimsNumber")%>
            </td>
			<td >
                <%# Eval("SerialNumber")%></td>          
			<td>
                <%# Eval("ItemCode")%>
            </td>
            <td>
                <%# Eval("Dscription")%>                
            </td>
            <td >
                <%# Eval("Quantity")%>
            </td>     
            <td ><%# Eval("LineTotal")%></td>   
            <td><%# Eval("UClaimType")%></td> 
            <td>
                <%# Eval("U_InvoiceNum")%>
            </td>
            <td>
                <%# Eval("U_ExpressMode")%>
            </td> 
            <td>
                <%# Convert.ToDateTime(Eval("TaxDate")).ToShortDateString()%>
            </td>         
            <td >
                <%# (Convert.ToDecimal(Eval("Quantity")) - Convert.ToDecimal(Eval("InQuantity"))).ToString("F2")%>
            </td>
            <td ><%# Eval("InDate") == DBNull.Value ? "&nbsp;" : Convert.ToDateTime(Eval("InDate")).ToShortDateString()%></td>
            <td><%# Convert.ToDecimal(Eval("InQuantity")).ToString("F2")%></td>
            <td>
                <%# Eval("InWuPan")%>
            </td>
		</tr>
        </ItemTemplate>
        <FooterTemplate>   
            <tr class="totalitemtr"  >        
                   
            <td colspan="5"  style=" text-align:right!important; font-weight:bold;" >
                合计:
            </td>     
            <td>
                <%=Convert.ToDecimal(GetUMDTValue("Quantity")).ToString("F2")%>
            </td>  
            <td  colspan="5" ><%=Convert.ToDecimal(GetUMDTValue("LineTotal")).ToString("F2")%></th>    
              
            <td colspan="2"  align="left">
                <%=Convert.ToDecimal(GetUMDTValue("needbackquantity")).ToString("F2")%>
            </td>      
           
            <td >
                <%=Convert.ToDecimal(GetUMDTValue("InQuantity")).ToString("F2")%>
            </td>
               <td>
                <%=Convert.ToDecimal(GetUMDTValue("InWuPan")).ToString("F2")%>
               </td>
        </tr>      
           </tbody>
        </table>
        </FooterTemplate> 
    </asp:repeater>
    
    
    </form>
</body>
</html>
